<!-- 云相册 子路由组件-elementUI的Card 卡片实现页面制作 -->
<template>
  <div>
    <el-card class="box-card">
      <div slot="header" class="clearfix">
        <span>云相册</span>
      </div>
      <!-- 轮播图 -->
      <template>
        <el-carousel :interval="5000" indicator-position="none">
          <el-carousel-item v-for="item in 5" :key="item">
            <img :src="require('../../assets/images/icon'+item+'.jpg')" alt="">
          </el-carousel-item>
        </el-carousel>
      </template>
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'my-cloudAlbum'
}
</script>

<style lang="less" scoped>
.clearfix span {
  font-size: 16px;
  font-weight: 700;
}
.box-card {
  width: 100%;
  background-color: rgba(242, 242, 242, 0.6);
}
.el-carousel__item h3 {
  color: #475669;
  font-size: 18px;
  opacity: 0.75;
  line-height: 300px;
  margin: 0;
  text-align: center;
}
.el-carousel__item img {
  width: 100%;
  height: 100%;
}
.el-carousel__item:nth-child(2n) {
  background-color: #99a9bf;
}

.el-carousel__item:nth-child(2n + 1) {
  background-color: #d3dce6;
}
/deep/ .el-carousel--horizontal {
  width: 320px;
  border-radius: 10px;
}
</style>
